import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import api from "./utils/http";
import "./permission";
import "./scss/public.scss";
import "./icon/iconfont.css";
import "./icon/iconfont.js";

const app = createApp(App);
import Socketio from "./plugins/socket/socket";
app.use(Socketio, {
  connection: "http://localhost:3009/",
  options: {
    transports: ["websocket"],
    debug: true,
    vuex: {},
  },
});
app.config.globalProperties.$api = api;
app.use(store).use(router).mount("#app");
